import Request from '@/utils/request'
import type { AdminParams, AdminInfo } from '@/types/admin'

/**
 * 登录
 */
export const login = (data: AdminParams) => {
  return Request.post<AdminInfo>('/user/adlogin', data)
}
